package com.wochao.web.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wochao.model.entity.LeaseAgreement;
import com.wochao.model.entity.LeaseTerm;
import com.wochao.model.enums.LeaseStatus;
import com.wochao.web.app.vo.agreement.AgreementItemVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LeaseAgreementMapper extends BaseMapper<LeaseAgreement> {

    /**
     * 获取当前用户的个人租约基本信息列表
     *
     * @param phone
     * @return
     */
    List<AgreementItemVo> selectListByPhone(String phone);

    /**
     * 根据房间id获取可选获取租期列表
     *
     * @param id
     * @return
     */
    List<LeaseTerm> selectListByRoomId(Long id);

}




